<%@ page contentType="text/html;charset=UTF-8" %>
{
	"apiVersion" : "1.0.0",
	"swaggerVersion" : "1.2",
	"basePath" : "http://localhost:7070/train/api",
	"resourcePath" : "/notice",
	"produces" : [ "application/json" ],
	"apis" : [
			{
				"path" : "/notice",
				"operations" : [
						{
							"method" : "GET",
							"summary" : "获得通知公告列表",
							"notes" : "",
							"type" : "Notice",
							"nickname" : "list",
							"authorizations" : {},
							"parameters" : [{
								"name" : "pageNumber",
								"description" : "目标第几页（从0开始）",
								"required" : false,
								"type" : "integer",
								"paramType" : "query",
								"allowMultiple" : false
							},{
								"name" : "pageSize",
								"description" : "每页显示几条记录",
								"required" : false,
								"type" : "integer",
								"paramType" : "query",
								"allowMultiple" : false
							},{
								"name" : "sortType",
								"description" : "排序规则（title,content）",
								"required" : false,
								"type" : "string",
								"paramType" : "query",
								"allowMultiple" : false
							},{
								"name" : "token",
								"description" : "校验码",
								"required" : true,
								"type" : "string",
								"paramType" : "query",
								"allowMultiple" : false
							}],
							"responseMessages" : [{
								"code" : 400,
								"message" : "参数错误"
							},{
								"code" : 403,
								"message" : "没有权限"
							}]
						},
						{
							"method" : "POST",
							"summary" : "添加通知公告",
							"notes" : "",
							"type" : "Notice",
							"nickname" : "addNotice",
							"authorizations" : {},
							"parameters" : [{
								"name" : "title",
								"description" : "标题",
								"required" : true,
								"type" : "string",
								"paramType" : "form",
								"allowMultiple" : false
							},{
								"name" : "content",
								"description" : "内容",
								"required" : true,
								"type" : "string",
								"paramType" : "form",
								"allowMultiple" : false
							},{
								"name" : "type",
								"description" : "类型:1通知/2公告",
								"required" : true,
								"type" : "integer",
								"paramType" : "form",
								"allowMultiple" : false
							},{
								"name" : "companys",
								"description" : "公司",
								"required" : true,
								"type" : "long",
								"paramType" : "form",
								"allowMultiple" : true
							},{
								"name" : "token",
								"description" : "校验码",
								"required" : true,
								"type" : "string",
								"paramType" : "query",
								"allowMultiple" : false
							}],
							"responseMessages" : [{
								"code" : 201,
								"message" : "创建成功"
							},{
								"code" : 400,
								"message" : "参数错误"
							},{
								"code" : 403,
								"message" : "没有权限"
							}]
						}
				]
			},
			{
				"path" : "/notice/{id}",
				"operations" : [
						{
							"method" : "GET",
							"summary" : "获得通知公告",
							"notes" : "",
							"type" : "Notice",
							"nickname" : "getNotice",
							"authorizations" : {},
							"parameters" : [{
								"name" : "id",
								"description" : "id",
								"required" : true,
								"type" : "long",
								"paramType" : "path",
								"allowMultiple" : false
							},{
								"name" : "token",
								"description" : "校验码",
								"required" : true,
								"type" : "string",
								"paramType" : "query",
								"allowMultiple" : false
							}],
							"responseMessages" : [{
								"code" : 400,
								"message" : "参数错误"
							},{
								"code" : 403,
								"message" : "没有权限"
							},{
								"code" : 404,
								"message" : "公告不存在"
							}]
						},
						{
							"method" : "PUT",
							"summary" : "更新通知公告",
							"notes" : "",
							"type" : "Notice",
							"nickname" : "updateNotice",
							"authorizations" : {},
							"parameters" : [{
								"name" : "id",
								"description" : "id",
								"required" : true,
								"type" : "long",
								"paramType" : "path",
								"allowMultiple" : false
							},{
								"name" : "title",
								"description" : "标题",
								"required" : true,
								"type" : "string",
								"paramType" : "form",
								"allowMultiple" : false
							},{
								"name" : "content",
								"description" : "内容",
								"required" : true,
								"type" : "string",
								"paramType" : "form",
								"allowMultiple" : false
							},{
								"name" : "type",
								"description" : "类型:1通知/2公告",
								"required" : true,
								"type" : "integer",
								"paramType" : "form",
								"allowMultiple" : false
							},{
								"name" : "companys",
								"description" : "公司",
								"required" : true,
								"type" : "long",
								"paramType" : "form",
								"allowMultiple" : true
							},{
								"name" : "token",
								"description" : "校验码",
								"required" : true,
								"type" : "string",
								"paramType" : "query",
								"allowMultiple" : false
							}],
							"responseMessages" : [{
								"code" : 400,
								"message" : "参数错误"
							},{
								"code" : 403,
								"message" : "没有权限"
							},{
								"code" : 404,
								"message" : "公告不存在"
							}]
						},
						{
							"method" : "DELETE",
							"summary" : "删除通知公告",
							"notes" : "",
							"type" : "Notice",
							"nickname" : "deleteNotice",
							"authorizations" : {},
							"parameters" : [{
								"name" : "id",
								"description" : "id",
								"required" : true,
								"type" : "long",
								"paramType" : "path",
								"allowMultiple" : false
							},{
								"name" : "token",
								"description" : "校验码",
								"required" : true,
								"type" : "string",
								"paramType" : "query",
								"allowMultiple" : false
							}],
							"responseMessages" : [{
								"code" : 400,
								"message" : "参数错误"
							},{
								"code" : 403,
								"message" : "没有权限"
							},{
								"code" : 404,
								"message" : "公告不存在"
							}]
						}
				]
			} ],
	"models" : {
		"Notice" : {
			"id" : "Notice",
			"properties" : {
				"id" : {
					"type" : "integer",
					"format" : "int64"
				},
				"title" : {
					"type" : "string"
				},
				"content" : {
					"type" : "string"
				},
				"type" : {
					"type" : "integer"
				}
			}
		}
	}
}